Introduction to HTML:


About HTML

  1. HTML stands for HyperText Markup Language

  2. It is the standard language used to create and structure the content of a webpage.
    • HyperText: This refers to the ability to create links that connect web pages to one another, making the web a connected "web" of information

    • Markup Language: This means you use "tags" to surround your content, giving that content meaning and structure. You are "marking up" a plain text document.

1.The Heading:

What it is:

Headings are tags used to define titles and subtitles on your page. They are crucial for creating a logical hierarchy and outline for your content.

2.The Paragraph:

What it is:

The paragraph tag is the most common tag you'll use. It's for grouping sentences and blocks of text together.

The Purpose:

To define a distinct paragraph of text. Browsers automatically add a little bit of space before and after a element, separating it from other content.

3.HTML Horizontal Lines:

The hr tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule.

The element is used to separate content (or define a change) in an HTML page:

4.The Line Break tag(br):

6.List Elements (ul,ol,li)

What it is:

These tags are used to create lists. This is a perfect example of nesting.

The Tags:

The Purpose-

To group related items together in a list format.

The Anchor Tag (a):

What it is:

The purpose:

To make text (or an image) clickable, allowing users to navigate. It requires an attribute called href (hypertext reference) to specify the destination URL.

HTML Links - The target Attribute

By default, the linked page will be displayed in the current browser window.

To change this, you must specify another target for the link.

7.The Image Tag(img):

What it is:

The Image tag is a self-closing tag used to embed an image onto your page.

The Purpose:

To display a visual image. It requires two main attributes



🏠 Homepage | ⬅ Previous Lecture | ➡ Next Lecture